<h2 class="h2-title">Tạo liên kết !!!</h2>

<?php if(isset($msg) AND $msg != ''):?>
<ul class="notification err">
    <li class="notifi_img"><img src="<?=base_url()?>assets/backend/css/images/icons/cross_circle.png"/></li>

    <li class="msg"><?=$msg?></li>

    <li class="close"><img src="<?=base_url()?>assets/backend/css/images/icons/cross_grey_small.png"/></li>

</ul><!--End of .notification -->

<?php else:?>

<div class="form_input_index">
    <ul class="form_text">
    <form action="<?=base_url()?>backend/cms/createlink"  method="POST">
        <li class="text_input">Tên hãng</li>
        <li><input type="text" value="" name="link_company" class="input-post"/></li>
        <?= form_error('link_company','<li class="errors">','</li>'); ?>

        <li class="text_input">Đường dẫn</li>
        <li><input type="text" value="" name="link" class="input-post"/></li>
        <?= form_error('link','<li class="errors">','</li>'); ?>

        <li class="text_input">Hình ảnh</li>
        <input type="text" value="" id="link_upload" name="link_image" />
        <input type="hidden" value="" id="path_img_link" name="path_img_link" /><br /><br />
        <?= form_error('link_image','<li class="errors">','</li>'); ?>
        <?= form_error('path_img_link','<li class="errors">','</li>'); ?>
        <li id="thumbs"></li>

        <li class="text_input">Chế độ mở</li>
        <select name="link_open">
            <option value="1">Mở trang mới</option>
            <option value="0">Mở tại trang hiện tại</option>
        </select>

        <li class="text_input">Trạng thái</li>
        <select name="link_status">
            <option value="1">Hiển thị</option>
            <option value="0">Ẩn</option>
        </select>
        <div style="clear: both;"></div>
        <input type="submit" class="sub" value="Đồng ý" name="sub"/>
        <a href="<?=base_url()?>backend/user" class="bnt">Quay lại</a>
    </form>
    </ul>
</div>
<?php endif;?>